﻿@using Resources
@model FindArtInfo.Models.PageMailFriendModel
@{
    ViewBag.Title = "Art appraisal. Search auction prices for free!";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@if (!string.IsNullOrEmpty(Model.MessageResult))
{
    @Html.Raw(Server.HtmlDecode(Html.ValidationMessageFor(m => m.MessageResult).ToString()))
} else {
    <h1 class="underline">@Multi.PageMailFriendTitle</h1>
    using (Html.BeginForm("Index", "MailFriend", FormMethod.Post))
    {
        @Html.AntiForgeryToken()
        <table border="0" id="table3" cellspacing="0" cellpadding="5">
            <!--DWLayoutTable-->                            
            <tr> 
                <td width="137" height="33" valign="top"><div align="left">
                                                            <p><b>@Multi.PageMailFriendName</b></p>
                                                        </div></td>
                <td width="233" valign="top">
                    @Html.TextBoxFor(m => m.FriendName, new {@size = "37"})
                    @Html.ValidationMessageFor(m => m.FriendName)
                </td>
            </tr>
            <tr>
                <td height="15"></td>
                <td></td>
            </tr>
            <tr> 
                <td height="32" valign="top"><div align="left"><b>@Multi.PageMailFriendEmail</b></div></td>
                <td>
                    @Html.TextBoxFor(m => m.FriendEmail, new {@size = "37"})
                    @Html.ValidationMessageFor(m => m.FriendEmail)
                </td>
            </tr>
            <tr> 
                <td height="32" valign="top"><div align="left"><b>@Multi.PageMailFriendYourName</b></div></td>
                <td>
                    @Html.TextBoxFor(m => m.YourName, new {@size = "37"})
                    @Html.ValidationMessageFor(m => m.YourName)
                </td>
            </tr>
            <tr> 
                <td height="32" valign="top"><div align="left"><b>@Multi.PageMailFriendYourEmail</b></div></td>
                <td width="80%">
                    @Html.TextBoxFor(m => m.YourEmail, new {@size = "37"})
                    @Html.ValidationMessageFor(m => m.YourEmail)
                </td>
            </tr>
            <tr> 
                <td height="141" valign="top"><b>@Multi.PageMailFriendMessage</b></td>
                <td>
                    @Html.TextAreaFor(m => m.Message, new {@rows = "8", @cols = "36"})
                </td>
            </tr>        
        </table>
        <blockquote> 
            <blockquote> 
                <blockquote> 
                    <p> 
                        <input type="submit" value="@Multi.PageMailFriendSubmit" class="knap">
                    </p>
                </blockquote>
            </blockquote>
        </blockquote>
    }
}
